﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
    MODEL.BaseInfo MBI = new MODEL.BaseInfo();
    MODEL.BaseInfo _MBI = new MODEL.BaseInfo();

    BLL.BaseInfo BBI = new BLL.BaseInfo();


    #region 封装字段
    private string keywords;
    private string description;

    public string Keywords
    {
        get { return keywords; }
        set { keywords = value; }
    }
    public string Description
    {
        get { return description; }
        set { description = value; }
    }
    #endregion


    protected void Page_Load(object sender, EventArgs e)
    {
        BaseInfoInit();
    }


    #region BaseInfoInit
    protected void BaseInfoInit()
    {
        try
        {

            MBI.BI_ID = 1;

            _MBI = BBI.GetDataByID(MBI);

            Page.Title = _MBI.BI_Content;


            MBI.BI_ID = 2;

            _MBI = BBI.GetDataByID(MBI);

            this.Keywords = "<meta http-equiv=\"keywords\" content=\"" + _MBI.BI_Content + "\" />";


            MBI.BI_ID = 3;

            _MBI = BBI.GetDataByID(MBI);

            this.Description = "<meta http-equiv=\"description\" content=\"" + _MBI.BI_Content + "\" />";


            head1.DataBind();
        }
        catch (Exception)
        {

        }
    }
    #endregion
}
